package days9.staffing_system;

/**
 * @Author fengzihao
 * @Date 2024-04-23 20:21
 */
public class Manager extends BaseStaff{

    private double bonus;

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println("舒服的一批的经理也要工作！");
    }
    @Override
    public void printStaff(){
        System.out.println(super.toString()+" "+this.toString());
    }

    @Override
    public String toString() {
        return "Manager{" +
                "bonus=" + bonus +
                '}';
    }
}
